package com.yuanfeng.business.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.business.dto.NewAgreementStatusUpdatedDTO;
import com.yuanfeng.business.dto.UserTokenBeanDTO;
import com.yuanfeng.business.entity.ShopAgreementEntity;
import com.yuanfeng.commoms.util.ResponseResult;

/**
 * @ClassName ShopAgreementService
 * @Description 店铺协议
 * @Author cf
 * @Date 2023/6/26 9:35
 * @Version 1.0
 */
public interface ShopAgreementService extends IService<ShopAgreementEntity> {

    /**
     * 校验店铺是否有新的协议要签
     *
     * @param param
     * @return
     */
    ResponseResult checkIsHaveAgreement(UserTokenBeanDTO param);


    /**
     * 更新最新店铺协议
     *
     * @param param
     *
     */
    ResponseResult updateNewAgreementStatus(NewAgreementStatusUpdatedDTO param);
}
